> Anton Sherwood <bro### [at] poboxcom> wrote:
> > Why does this show nothing?
Chris Huff wrote:
> You don't specify a threshold, so it defaults to 0. Your function only
> evaluates to 0 at a few points(if it ever does),
Eh? -PigFun + r^2 ought to be negative somewhere within the unit
sphere.
> so [no] surfaces are found.
> Try using a threshold of 0.5 for some results.
Okay.
Why does this show nothing?
#declare PigFun = function {
pigment {
granite
color_map { [0 rgb 0] [1 rgb 1] }
}
}
isosurface {
function { -PigFun + (sqr(x)+sqr(y)+sqr(z)) }
threshold 0.5 // likewise 1
contained_by { sphere { 0,2 }}
pigment { rgb 1 }
}
--
Anton Sherwood -- br0### [at] p0b0xcom -- http://ogre.nu/
Post a reply to this message
|